import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component{
    render(){
        return <div>
                <h2>是一个类式组件</h2>
        </div>
    }
}
ReactDOM.render(<App/>,document.querySelector('#root'))